<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
    <link href="https://cdn.bootcss.com/bootstrap/3.3.7/css/bootstrap.min.css" rel="stylesheet">
</head>
<body>
        <nav aria-label="Page navigation">
                <ul class="pagination">
                  
                </ul>
        </nav>

    <script src="https://cdn.bootcss.com/jquery/1.12.3/jquery.min.js"></script>
    <script src="https://cdn.bootcss.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
    <script>
        $.ajax({
            type: "post",
            url: "http://localhost:3000/users/list",
        }).then(res=>{
           console.log(res)
           var pages='';
           for(let i=1;i<=res.pages;i++){
               pages +='<li><a href="#">'+i+'</a></li>'
           }
           console.log(pages);
           $('.pagination').html(pages)
        });
    </script>
</body>
</html>